package com.dynamixsoftware.printershare;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import com.dynamixsoftware.printershare.ActivityInfo;
import com.dynamixsoftware.printershare.ActivityRoot;
import com.dynamixsoftware.printershare.App;

public class ActivityAbout extends ActivityRoot {

	public void onCreate(Bundle var1) {
		super.onCreate(var1);
		this.setContentView(2130903040);
		this.setTitle(2131099669);
		String var2 = App.getVersion();
		String var3 = var2 + this.getTitleSuffix();
		((TextView) this.findViewById(2131230720)).setText(String.format(this.getResources().getString(2131099650),
				new Object[] { var3 }));
		String var4 = this.getCampaignID();
		TextView var5 = (TextView) this.findViewById(2131230721);
		String var6;
		if (var4.length() > 0) {
			var6 = "[" + var4 + "]";
		} else {
			var6 = "";
		}

		var5.setText(var6);
		((Button) this.findViewById(2131230722)).setOnClickListener(new OnClickListener() {
			public void onClick(View var1) {
				Intent var2 = new Intent();
				var2.setClass(ActivityAbout.this, ActivityInfo.class);
				ActivityAbout.this.startActivity(var2);
			}
		});
		((Button) this.findViewById(2131230723)).setOnClickListener(new OnClickListener() {
			public void onClick(View var1) {
				Intent var2 = new Intent("android.intent.action.SEND");
				var2.setType("plain/text");
				var2.putExtra("android.intent.extra.EMAIL", new String[] { "support@printershare.com" });
				var2.putExtra("android.intent.extra.SUBJECT", "PrinterShare Feedback");
				var2.putExtra("android.intent.extra.TEXT", "");
				ActivityAbout.this.startActivity(Intent.createChooser(var2, ActivityAbout.this.getResources()
						.getString(2131099719)));
			}
		});
		((Button) this.findViewById(2131230724)).setOnClickListener(new OnClickListener() {
			public void onClick(View var1) {
				Intent var2 = new Intent();
				var2.setAction("android.intent.action.VIEW");
				var2.addCategory("android.intent.category.BROWSABLE");
				var2.setData(Uri.parse("http://www.mobiledynamix.com"));
				ActivityAbout.this.startActivity(var2);
			}
		});
	}
}
